﻿using mozhi.smarterp.BasicData.Enums;
using System;
using System.Collections.Generic;
using System.Text;

namespace mozhi.smarterp.BasicData.BusinessGroups
{
    /// <summary>
    /// 业务组
    /// </summary>
    public class BusinessGroup : AggregateRootBase
    {
        public BusinessGroupType Type { get; private set; }

        public BusinessGroup(Guid id, string code, string name, bool activate, BusinessGroupType type) : base(id, code, name, activate)
        {
            Type = type;

            if (Type == default)
                throw new ArgumentNullException(nameof(type));
        }
    }
}
